package com.tuzhi.gateway.httpclient.face;

import com.dtflys.forest.annotation.*;
import com.tuzhi.common.domain.LoginUserBO;
import com.tuzhi.common.domain.ResultBO;

import java.util.Set;

@Address(host = "${host_auth}", port = "${port_auth}")
public interface AuthApi {

    @Post(value = "/auth/permission/check")
    ResultBO<LoginUserBO> checkAuth(@Header("authUrl") String authUrl, @Header("Authorization") String Authorization);

    @Get(value = "/auth/config/getNotAuthUrl")
    Set<String> getNonAuthUrl();

   /* @Post(value = "/auth/sys/user/getLoginUser")
    LoginUserBO getLoginUser(@Body("token") String token);*/

    @Post(value = "/auth/sys/user/tokenIsExpRefresh")
    String tokenIsExpRefresh(@Body("token") String token);
}
